$(function(){
	$('#ff').form({
	    url:"../grant/login",
	    onSubmit: function(){
			console.log("进入submit")
	    },
	    success:function(data){
	    	data=$.parseJSON(data);
			if(data.success){
				window.location.href="../home/home";
			}
			else{
				$.messager.alert('登录失败', data.message);
			}
	    }
	});
});